<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>
<%= link_to "Admin menu", :controller=>'admin', :action=>'menu' %><br/>
<% unless @event.nil? %>
<%= link_to "#{@event.name} home", :controller=>'conference', :action=>'events', :id=>@event.id %>
<% else %>
<%= link_to "Conference home", :controller=>'conference', :action=>'list_events' %>  
<% end %>
<% unless session[:username] %>
    <%= render :partial=>'common/login_form'%>
<% else %>
  <p>Signed in as <%= session[:username] %></p>
  <p><%= link_to "Sign out", :controller=>'login', :action=>'logout'%></p>
<p><%= link_to "Profile", :controller=>'profile', :action=>'index'%></p>
<% end %>